package com.ray.bean;

import java.util.List;

import com.google.appengine.repackaged.com.google.io.protocol.MutableBridge.DowngraderUtil;

import lombok.Data;

/**
 * 公司物料库存表
* <p>Title: CompanyMaterialCountBean</p>  
* <p>Description: </p>  
* @author 李斌  
* @date 2018年9月17日
 */
@Data
public class CompanyMaterialCountBean {
	
	//id
	private Integer id;
	//仓库类型 : 1成品仓 2报废仓 3待处理仓 4原材料仓 5 辅料仓 6半成品仓
	private Integer warehouseType;
	//物料代码
	private String materialCode;
	//订单编号
	private String orderId;
	//工厂型号
	private String factoryNo;
	//客户型号
	private String customerNo;
	//公司订单编号
	private String companyOrderId;
	//行号
	private Integer rowIndex;
	private String rowIndexStr;//字符串行号
	//物料单位合格数
	private Double count;
	//物料单位不合格数
	private Double noCount;
	//生产单位库存数
	private Double productionUnitCount;
	//生产单位不合格数
	private Double productionUnitNoCount;
	//公司
	private String company;
	//可用数
	private Double availableCount;
	//占用数
	private Double materialUseCount;
	
	//物料信息
	private String materialName;
	private String model;
	private String color;
	private String unit;
	private Double unitPrice;
	private String exportCount;
	private String exportProductionUnitCount;
	private String providerName;
	private String providerNo;
	private String colorDescription;
	private String defaultWarehouse;
	private List<String> positionList;
	
	//数量
	private double feedCount;//投料数
	private double purchaseCount;//采购数量
	private double receiveCount;//领料数
	private double inCount;//入库数
	private double outCount;//出库数
	private double stockCount;//库存数
	
	private Double safetyStockMin;//物料安全下限
	private Double safetyStockMax;//物料安全库存上限
	
	private  Integer materialDeptId;//物料归属部门
	private  String  materialDeptName;//物料归属部门名称
	
	private  Double inSumPrice;//入库总额
	private  Double inSumCount;//入库总数量
	
	private String img;
	private String imgTwo;
	private String imgThree;
	private String imgFour;
	
	public void setRowIndexStr() {
		int rr=this.getRowIndex()==null?0:this.getRowIndex();
		String string="";
		switch (rr) {
		case 0:
			break;
		case -1:
			string="通用";
			break;
		default:
			string=rr+"";
			break;
		}
		this.rowIndexStr=string;
	}
	
}
